<template>
  <div id="app">
    <router-view v-if="flag"/>
  </div>
</template>

<script>

export default {
  name: 'app',
  components: {
  },
  data(){
    return{
      flag:true
    }
  },
  provide(){
    return{
      reload:this.reload
    }
  },
  methods:{
    reload(){
      this.flag = false;
      this.$nextTick(() => this.flag = true)

    }
  }
}
</script>

<style>

</style>
